<template>
  <div id="app">
    {{ msg }}
  </div>
</template>

<script>
import axios from 'axios'

export default {
  name: 'App',
  data() {
    return {
      msg:''
    }
  },
  created(){
    this.getdata()
  },
  methods:{
    getdata(){
      axios.get('http://localhost:3748/login').then(res => {
        console.log(res);
        this.msg = res.data.msg
      })
    }
  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
